<?php get_header(); ?>

<div id="main">

   <div id="content" role="main"  class="single-post">
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	  <div id="post-<?php the_ID(); ?>" >

		
		<h2 class="entry-title"><?php the_title(); ?><sup><?php comments_popup_link('0', '1', '%'); ?></sup></h2>
							<div class="post-meta">
					
					<span class="postdate"><?php the_time('M d, Y') ?></span>
					<span class="author">Posted by <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="<?php echo get_the_author(); ?>"><?php echo get_the_author()?></a></span>
					
					<?php if ( count( get_the_category() ) ) : ?>
					<span class="cat-links">
						<?php printf( __( '<span class="%1$s"> in</span> %2$s', 'Cindy' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
					</span>
					<span class="meta-sep">|</span>
				<?php endif; ?>
				<?php
					$tags_list = get_the_tag_list( '', ', ' );
					if ( $tags_list ):
				?>
					<span class="tag-links">
						<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'Cindy' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
					</span>
					<span class="meta-sep">|</span>
				<?php endif; ?>
				    <span class="post-views"><?php if(function_exists('the_views')) {  the_views();  } ?></span>
					<span class="edit"><?php edit_post_link('Edit', '  ', '  '); ?></span>
					</div><!--End of post-meta-->

		<div class="entry-content">
			<?php the_content('Read more...'); ?>
		</div><!--End for entry-content -->
		
	
		</div><!--End for post -->
		
		
		
		
		
		
		
		
		
	 </div><!--End for content -->
	 
	 
	  <div id="previous-and-next">
	       <div class="previous-post"><span>PREVIOUS</span><br /><?php previous_post_link(' %link') ?></div>
          <div class="next-post"><span>NEXT</span><br /><?php next_post_link('%link ') ?></div>

	  
	  
	  
	  </div>

	 <div id="comments">
	 <?php comments_template(); ?>
	 </div>
	 
	 
	 
	 
	 
	 
	
</div><!-- End for main-->
		
		<?php endwhile; else: ?>
	<?php endif; ?>
				

<?php get_sidebar(); ?>

<?php get_footer(); ?>